package com.xiaoyu.string;

/**
 * Created by xiaoyu on 16/3/30.
 */
public class StaticFieldInitialize {

    //静态变量
    public static int myStaticID1 = 200;

    //静态代码块
    static {
        System.out.println(myStaticID1);
//        System.out.println(myStaticID2);
    }
    private static int myStaticID2 = 300;

    //成员属性
    private String  myText;

    public StaticFieldInitialize(){
        myText = "text";
        myStaticID1 = 201;
    }


    public static void main(String[] args) {
        StaticFieldInitialize s1 = new StaticFieldInitialize();
        StaticFieldInitialize s2 = new StaticFieldInitialize();
    }
}
